package com.android.lovingpet.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by ikata on 2018/6/14.
 */

public class Body implements Parcelable {
    private int id;
    private String image;
    private String description;
    private String address;
    private double latitude;
    private double longitude;

    public Body()
    {

    }

    protected Body(Parcel in) {
        address=in.readString();
        image = in.readString();
        description = in.readString();
        latitude = in.readDouble();
        longitude = in.readDouble();
        id=in.readInt();
    }

    public static final Creator<Body> CREATOR = new Creator<Body>() {
        @Override
        public Body createFromParcel(Parcel in) {
            return new Body(in);
        }

        @Override
        public Body[] newArray(int size) {
            return new Body[size];
        }
    };

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(address);
        dest.writeString(image);
        dest.writeString(description);
        dest.writeDouble(latitude);
        dest.writeDouble(longitude);
        dest.writeInt(id);
    }
}
